<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>数据字典信息保存</title>
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.js"></script>
</head>
<body>
<div class="hold-transition skin-black sidebar-mini">
    <div th:replace="common/fragment :: link"></div>
    <div class="wrapper">
        <div th:replace="common/fragment :: navbar"></div>
        <div th:replace="common/fragment :: menu"></div>
        <div class="content-wrapper">
            <section class="content-header">
                <h1>字典详细信息编辑</h1>
            </section>
            <section class="content">
                <div class="box">
                    <form class="form-horizontal m" action="/dictData/saveOrUpdate" method="post"
                          th:object="${DictData}">
                        <input type="hidden" name="dictCode" th:value="${DictData?.dictCode}">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">排序：</label>
                            <div class="col-sm-8">
                                <input name="dictSort" class="form-control" th:value="${DictData?.dictSort}" type="text"
                                       required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">标签：</label>
                            <div class="col-sm-8">
                                <input name="dictLabel" class="form-control" th:value="${DictData?.dictLabel}"
                                       type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">键值：</label>
                            <div class="col-sm-8">
                                <input name="dictValue" class="form-control" th:value="${DictData?.dictValue}"
                                       type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">备注：</label>
                            <div class="col-sm-8">
                                <input name="remark" class="form-control" th:value="${DictData?.remark}" type="text"
                                       required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">类型：</label>
                            <div class="col-sm-8">
                                <select name="dictType" class="form-control">
                                    <option th:each="d : ${dictTypes}"
                                            th:selected="${DictData?.dictType} == ${d.dictType} or ${dictTypeAdd} == ${d.dictType}"
                                            th:value="${d.dictType}"
                                            th:text="${d.dictName}">百度
                                    </option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-6"></label>
                            <div class="col-sm-6">
                                <input class="btn btn-primary" type="submit" value="提交">
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </div>
    </div>
</div>
</body>
</html>